<template>
    <div class="iframe">
        <div class="i-title">
            <h3>包含传参</h3>
        </div>
        <div class="i-tip">子传父的值:{{ cvalue }}</div>
        <child-comp :like="plike" @sendvalue="getsendvalue" />
    </div>
</template>

<script setup>
import ChildComp from "./ChildComp.vue";
import { ref } from "vue";
let plike = "明天可能会下雨";
let cvalue = ref("")
function getsendvalue(d) {
    cvalue.value = d;
}
</script>

